@import (css) "../../fonts/fonts.wxss";
@import "../../less/var.less";
.search-box{
    @psize:12rpx;
    position: fixed;
    top: 0rpx;
    left: 0rpx;
    width: 100%;
    // 变异盒子模型
    box-sizing: border-box; 
    padding: @psize;
    background-color: white;
    height: @topH;
    box-shadow: 0rpx 2rpx 8rpx #888888;
    z-index: 999;
    display: flex;
    flex-flow: row nowrap;
    .input{
        flex-grow: 1;
        position: relative;
        >input{
            font-size: 28rpx;
            background-color: #dedede;
            height: @topH - @psize * 2;
            line-height: @topH - @psize * 2;
            border-radius: 1000rpx 0rpx 0rpx 1000rpx;
            padding-left: 60rpx;
        }
        >text{
            position: absolute;
            top: 0rpx;
            left: 0rpx;
            line-height: @topH - @psize * 2;
            padding: 0rpx 20rpx 0rpx 20rpx;
        }
    }
    .btn{
        width: 140rpx;
        >text{
            display: inline-block;
            text-align: center;
            box-sizing: border-box;
            width: 100%;
            font-size: 28rpx;
            height: @topH - @psize * 2;
            line-height: @topH - @psize * 2;
            background-color: @blue;
            color: white;
            border-radius: 0rpx 1000rpx 1000rpx 0rpx;
            &:active{
                background-color: desaturate(@blue,40%);
            }
        }
    }
}